<?php

/**
 * Created by PhpStorm.
 * User: Cao
 * Date: 09/10/2014
 * Time: 10:46
 */
class FistController extends CI_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->helper("url");
        $this->load->helper('form');
    }

    public function index()
    {
        $sess_id = $this->session->userdata('user_id');
        if (!empty($sess_id)) {
            redirect('admincp/dashboard', 'refresh');
        } else {
            $this->session->set_userdata(array('msg' => ''));
            $this->load->view('login/index');
        }
    }

}